package com.nulstudio.sppm.Dao;

import com.nulstudio.sppm.Entities.Customer;
import com.nulstudio.sppm.Entities.SupplierInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

import java.util.List;

@Mapper
public interface CustomerMapper {
    public List<Customer> getAllCustomers();

    @Options(useGeneratedKeys = true, keyProperty = "id")
    public int addCustomer(Customer Customer);
    public int deleteCustomer(int id);
    public int getIdByInfo(Customer info);
    public int modifyCustomer(Customer request);
    public int getLastId();
}
